package DoMain;

import java.util.Date;

public class CriteriaStudent {

	private Integer studentNo;
	private String studentName;;
	private String sex;
	private String className;;
	private String dormNo;
	private String roomNo;;
	private String regist;
	private Date lateDate;;
	private String lateReson;
	public Integer getStudentNo() {
		return studentNo;
	}
	public void setStudentNo(Integer studentNo) {
		this.studentNo = studentNo;
	}
	public String getStudentName() {
		
		if(studentName==null) 
			
			studentName="%%";
			
			else
				
			studentName="%"+studentName+"%";
		
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getClassName() {
		
		if(className==null)
			
			className="%%";
		else
			
			className="%"+className+"%";
		
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getDormNo() {
		return dormNo;
	}
	public void setDormNo(String dormNo) {
		this.dormNo = dormNo;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public String getRegist() {
		return regist;
	}
	public void setRegist(String regist) {
		this.regist = regist;
	}
	public Date getLateDate() {
		return lateDate;
	}
	public void setLateDate(Date lateDate) {
		this.lateDate = lateDate;
	}
	public String getLateReson() {
		return lateReson;
	}
	public void setLateReson(String lateReson) {
		this.lateReson = lateReson;
	}
	/**
	 * 
	 */
	public CriteriaStudent() {
		
	}
	/**
	 * @param studentName
	 * @param className
	 */
	public CriteriaStudent(String studentName, String className) {
		super();
		this.studentName = studentName;
		this.className = className;
	}
		
}
